<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const nums=[123,24,551,523,532,23,122]
        const total=nums.filter(function(item){
            return item<200
        }).map(function(item){
            return item -200
        }).reduce(function(pre,item){
            return pre+item
        },0)
        console.log(total)
    </script>
</body>
</html>